
/**
 * Write a description of class Recursion here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Recursion
{
    public static void main(String[] args)
    {
        System.out.println("" + addEmUp(6));
    }
    
    public static int addEmUp(int num)
    {
        int total = 0;
        if(num == 0)
        {
            return 0;
        }
        else
        {
            return total += addEmUp(num - 1);
        }
    }
}
